<!DOCTYPE html>
<html ng-app="Logon">
<head>
	<meta charset="utf-8" />
	<title>智能管理系统 - 登录</title>
	<meta http-equiv="X-UA-Campatible" content="IE=edge" />
	<meta http-equiv="Content-Language" Content="zh-CN" />
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="decription" />
	<meta content="jason.wang" name="author" />
	<meta name="MobileOptimized" content="320" />

	<%= stylesheet_link_tag    "Logon", media: "all", "data-turbolinks-track" => true %>
	<%= javascript_include_tag "LogonApp", "data-turbolinks-track" => true %>
	<%= csrf_meta_tags %>

</head>
<body class="login">

	<div class="logo">
		<img src="../assets/img/logo-big.png" alt="" /> 
	</div>

	<div class="content">

		<form class="login-form" ng-controller="LogonForm">
			<h3 class="form-title">智能ERP系统</h3>
			<div class="form-group">
				<label class="control-label visible-ie8 visible-ie9">用户名：</label>
				<div class="input-icon">
					<i class="fa fa-user"></i>
					<input type="text" class="form-control placeholder-no-fix" autocomplete="off" name="username" placeholder="用户名" ng-model="username" />
				</div>
			</div>
			<div class="form-group">
				<label class="control-label visible-ie8 visible-ie9">Password</label>
				<div class="input-icon">
					<i class="fa fa-lock"></i>
					<input class="form-control placeholder-no-fix" type="password" autocomplete="off" placeholder="密码" name="password" ng-model="password"/>
				</div>
			</div>
			<div class="form-actions">
				<label class="checkbox">
				<input type="checkbox" name="remember" value="1"/> 记住登陆状态
				</label>
				<button type="submit" class="btn blue pull-right" ng-click="onLogon()">
				登录 <i class="m-icon-swapright m-icon-white"></i>
				</button>            
			</div>
			<p></p>
			<div class="alert alert-danger" ng-show="Error"><strong>错误!</strong> {{ErrorInfo}}</div>
		</form>

	</div>
	<div class="copyright">
		2013 &copy; Jason.Wang.
	</div>
</body>
